import 'package:flutter/material.dart';

import 'VolumeSlider.dart';

class VolumeSliderPage extends StatefulWidget {
  const VolumeSliderPage({super.key});

  @override
  State<VolumeSliderPage> createState() => _VolumeSliderPageState();
}

class _VolumeSliderPageState extends State<VolumeSliderPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text('VolumeSliderPage')),
        body: Column(children: [
          const Text("麦克风"),
          SizedBox(
            height: 50,
            child: VolumeSlider(
              value: 0.5, // 初始值
              onChanged: (v) {
                print("拖动中: $v");
              },
              onChangeEnd: (v) {
                print("拖动结束: $v");
              },
            ),
          ),
        ]));
  }
}
